package org.edu.modules.sxjy.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.sql.Date;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;

/**
 * @author leidq
 * @create 2022-04-08 13:59
 */

@TableName("ve_stu_reward")
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "奖励信息表对象", description = "ve_stu_reward")
public class VeStuReward extends BaseEntity implements Serializable {
    private static final long serialVersionUID = 1L;
    @TableField
    @ApiModelProperty("学生id(个人)")
    private Integer stuId;
    @TableField
    @ApiModelProperty("学生姓名")
    @Length(max = 30)
    private String name;
    @TableField
    @ApiModelProperty("学生学号")
    @Length(max = 30)
    private String code;
    @TableField
    @ApiModelProperty("院系id")
    private Integer falId;
    @TableField
    @ApiModelProperty("专业id")
    private Integer specId;
    @TableField
    @ApiModelProperty("奖励类型id")
    private Integer typeId;
    @TableField
    @ApiModelProperty("班级id(集体)或学生所属班级id")
    private Integer bjId;
    @TableField
    @ApiModelProperty("班级id(集体)或学生所属班级id")
    private String bjText;
    @TableField
    @ApiModelProperty("文件id（申请材料）")
    private Integer fileId;
    @TableField
    @ApiModelProperty("获奖时间")
    @JsonFormat(timezone = "GMT+8", locale = "zh", pattern = "yyyy-MM-dd")
    private Date rewardTime;
    @TableField
    @ApiModelProperty("获奖描述")
    @Length(max = 65535)
    private String content;
}
